package com.iknow.xmpp.service.aidl;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.iknow.xmpp.service.PrivacyListItem;
import java.util.List;

public abstract interface IPrivacyListListener
  implements IInterface
{
  public abstract void setPrivacyList(String paramString, List<PrivacyListItem> paramList)
    throws RemoteException;

  public abstract void updatedPrivacyList(String paramString)
    throws RemoteException;

  public static abstract class Stub extends Binder
  implements IPrivacyListListener
  {
    private static final String DESCRIPTOR = "com.iknow.xmpp.service.aidl.IPrivacyListListener";
    static final int TRANSACTION_setPrivacyList = 2;
    static final int TRANSACTION_updatedPrivacyList = 1;

    public Stub()
    {
      attachInterface(this, "com.iknow.xmpp.service.aidl.IPrivacyListListener");
    }

    public static IPrivacyListListener asInterface(IBinder paramIBinder)
    {
      Object localObject;
      if (paramIBinder == null)
        localObject = null;
      while (true)
      {
        while (true)
        {
          return localObject;
          IInterface localIInterface = paramIBinder.queryLocalInterface("com.iknow.xmpp.service.aidl.IPrivacyListListener");
          if ((localIInterface == null) || (!(localIInterface instanceof IPrivacyListListener)))
            break;
          localObject = (IPrivacyListListener)localIInterface;
        }
        localObject = new Proxy(paramIBinder);
      }
    }

    public IBinder asBinder()
    {
      return this;
    }

    public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
      throws RemoteException
    {
      boolean bool;
      switch (paramInt1)
      {
      default:
        bool = super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
      case 1598968902:
      case 1:
      case 2:
      }
      while (true)
      {
        while (true)
        {
          while (true)
          {
            return bool;
            paramParcel2.writeString("com.iknow.xmpp.service.aidl.IPrivacyListListener");
            bool = true;
          }
          paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IPrivacyListListener");
          updatedPrivacyList(paramParcel1.readString());
          paramParcel2.writeNoException();
          bool = true;
        }
        paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IPrivacyListListener");
        setPrivacyList(paramParcel1.readString(), paramParcel1.createTypedArrayList(PrivacyListItem.CREATOR));
        paramParcel2.writeNoException();
        bool = true;
      }
    }

    private static class Proxy
  implements IPrivacyListListener
    {
      private IBinder mRemote;

      Proxy(IBinder paramIBinder)
      {
        this.mRemote = paramIBinder;
      }

      public IBinder asBinder()
      {
        return this.mRemote;
      }

      public String getInterfaceDescriptor()
      {
        return "com.iknow.xmpp.service.aidl.IPrivacyListListener";
      }

      public void setPrivacyList(String paramString, List<PrivacyListItem> paramList)
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IPrivacyListListener");
          localParcel1.writeString(paramString);
          localParcel1.writeTypedList(paramList);
          this.mRemote.transact(2, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public void updatedPrivacyList(String paramString)
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IPrivacyListListener");
          localParcel1.writeString(paramString);
          this.mRemote.transact(1, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }
    }
  }
}